<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>订单详情</title>
<meta name="viewport" content="width=100%, initial-scale=1.0, user-scalable=no" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="/lib/weix/style/weui.min.css">
<link rel="stylesheet" href="/css/fonts.css">
<link rel="stylesheet" href="/css/comm.css">
<link rel="stylesheet" href="/css/detailed_hej.css">
</head>

<body>
<div class="th-detail__htoux"><span class="tb" style="background-color:#ffbf24"><i class="icon-user "></i></span></div>

<div class="th-details">
	<div class="th-detail">
    	<div class="th-detail__zc"><div class="nrt">客户姓名</div></div>
        <div class="th-detail__yc" id="J_customer"></div>
    </div>
    
    <div class="th-detail">
    	<div class="th-detail__zc"><div class="nrt">客户手机</div></div>
        <div class="th-detail__yc" id="J_phone"></div>
    </div>
    
    <div class="th-detail">
    	<div class="th-detail__zc"><div class="nrt">客户地址</div></div>
        <div class="th-detail__yc" id="J_address"></div>
    </div>
    
    <div class="th-detail">
    	<div class="th-detail__zc"><div class="nrt">成交金额</div></div>
        <div class="th-detail__yc" id="J_totalMoney"></div>
    </div>

    <div class="th-detail">
    	<div class="th-detail__zc"><div class="nrt">报备人</div></div>
        <div class="th-detail__yc" id="J_userName"></div>
    </div>
    
    <div class="th-detail">
    	<div class="th-detail__zc"><div class="nrt">报备时间</div></div>
        <div class="th-detail__yc" id="J_setTime"></div>
    </div>
    
    <div class="th-detail">
    	<div class="th-detail__zc"><div class="nrt">获得奖励</div></div>
        <div class="th-detail__yc" id="J_points"></div>
    </div>
    
    
    <div class="th-detail">
    	<div class="th-detail__zc"><div class="nrt">开单时间</div></div>
        <div class="th-detail__yc" id="J_addTime"></div>
    </div>
    
    <div class="th-detail">
    	<div class="th-detail__zc"><div class="nrt">开单员</div></div>
        <div class="th-detail__yc" id="J_addName"></div>
    </div>
    
    <div class="th-detail">
    	<div class="th-detail__zc"><div class="nrt">相关凭证</div></div>
        <div class="th-detail__yc J_wxpic_show">
        	<div class="th-detail__img" id="J_pic"></div>
        </div>
    </div>
    
</div>

<script src="/js/zepto.min.js"></script>
<script src="https://res.wx.qq.com/open/libs/weuijs/1.0.0/weui.min.js"></script>
<script src="/js/comm.js"></script>
<script type="text/javascript">
$(function(){	
	var id  = "${id}";
	var data = {id:id};
	var url = "/order/dealOrderDetail";
	$.ajax({
		type: "POST",
		async: false,
		dataType: 'json',
		contentType: "application/json; charset=utf-8",
		data: JSON.stringify(data),
		url: url,
		success: function(res){
			if(res.code == 200){
				var datas = res.data;
				$("#J_customer").html(datas.name);
				$("#J_phone").html(datas.phone);
				$("#J_address").html(datas.address);
				$("#J_totalMoney").html(datas.total_money);
				$("#J_addTime").html(datas.addtime);
				$("#J_userName").html(datas.user_name);
				$("#J_points").html(datas.points);
				$("#J_setTime").html(datas.settime);
				$("#J_addName").html(datas.add_name);
				$("#J_pic").html('<img class="fd" src="'+datas.pic+'" />')
			}else{
				weui.topTips(res.msg)
			}
		},
		error: function(){

		},
		complete: function(){
			winxpic();
		}
	});
});
</script>
</body>
</html>